package com.doit.day02;

import redis.clients.jedis.Jedis;

public class PublishDemo {
    public static void main(String[] args) {
        //获取到redis的对象
        Jedis redis = new Jedis("linux01", 6379);

        redis.publish("A","bao，我想你了！！！");


        //访问一个地址

        //while true

    }
}
